CLF-C02 Compute Services 5 — Questions and Answers
Question 1: Which AWS service provides a fully managed environment to run containerized web applications with automatic scaling and load balancing, requiring minimal configuration?
- Amazon ECS
- Amazon EKS
- AWS App Runner (Correct answer)
- AWS Elastic Beanstalk
Correct answer: AWS App Runner
AWS App Runner builds, deploys, and scales containerized web applications automatically with no infrastructure management needed.
Question 2: A solutions architect needs to run EC2 instances that are physically isolated at the host level but does NOT need to use their own software licenses. Which option should they choose?
- Dedicated Hosts
- Dedicated Instances (Correct answer)
- Reserved Instances
- Spot Instances
Correct answer: Dedicated Instances
Dedicated Instances run on hardware dedicated to a single customer but AWS manages host placement; Dedicated Hosts are needed when per-host visibility and license control are required.
Question 3: Which EC2 instance family uses custom AWS Graviton processors and is known for offering better price-performance for many workloads?
- T family (burstable)
- C family (compute optimized)
- M family (general purpose)
- Graviton-based instances (e.g., M6g, C7g) (Correct answer)
Correct answer: Graviton-based instances (e.g., M6g, C7g)
Graviton-based instances use AWS-designed ARM processors and typically deliver up to 40% better price-performance than comparable x86 instances.
Question 4: In the context of EC2 Auto Scaling, what is a 'launch template' used for?
- Defining the CloudWatch alarms that trigger scaling
- Specifying the AMI, instance type, key pair, and other configuration for new instances (Correct answer)
- Setting the minimum and maximum instance counts
- Configuring Elastic Load Balancer target groups
Correct answer: Specifying the AMI, instance type, key pair, and other configuration for new instances
A launch template contains the configuration blueprint (AMI, instance type, security groups, etc.) that Auto Scaling uses when it launches new EC2 instances.
Question 5: Which statement about AWS Lambda and VPC integration is correct?
- Lambda functions cannot access resources inside a VPC
- Lambda functions can be configured to access resources in a VPC by attaching VPC settings to the function (Correct answer)
- Lambda functions always run inside the customer's VPC by default
- Lambda functions require a NAT Gateway to execute code
Correct answer: Lambda functions can be configured to access resources in a VPC by attaching VPC settings to the function
You can configure a Lambda function to connect to private subnets in a VPC, allowing it to access RDS databases, ElastiCache clusters, or other private resources.
Question 6: What is the primary use case for Amazon EC2 Image Builder?
- Converting Docker images to Lambda deployment packages
- Automating the creation, maintenance, and testing of EC2 AMIs (Correct answer)
- Building CI/CD pipelines for serverless applications
- Generating machine learning model artifacts
Correct answer: Automating the creation, maintenance, and testing of EC2 AMIs
EC2 Image Builder automates the pipeline to build, test, and distribute golden AMIs, ensuring they are patched and compliant.
Question 7: Which of the following best describes the concept of 'elasticity' in AWS compute services?
- The ability to deploy instances across multiple AWS Regions simultaneously
- The ability to automatically acquire and release compute resources to match current demand (Correct answer)
- The use of Reserved Instances to guarantee long-term capacity
- The encryption of data at rest and in transit on EC2 instances
Correct answer: The ability to automatically acquire and release compute resources to match current demand
Elasticity refers to the ability to scale resources up or down automatically in response to changing demand, avoiding both over-provisioning and under-provisioning.
Which AWS service provides a fully managed environment to run containerized web applications with automatic scaling and load balancing, requiring minimal configuration?