The AWS Certified Developer – Associate (DVA-C02) exam tests your proficiency in developing applications on AWS. It is designed for developers looking to validate their skills in AWS development.
What happens when you launch an EC2 instance without a security group?
AInstance launches with default security group
BLaunch fails with an error
CInstance has no network access
DInstance is open to all traffic
Explanation
An EC2 instance launches with a default security group if no security group is specified, allowing traffic as per its rules.
Q22
Which AWS service is used for serverless application deployment?
AAWS Lambda
BAmazon RDS
CAmazon EC2
DAWS Fargate
Explanation
AWS Lambda is designed for serverless applications, while EC2 and RDS are traditional computing services.
Q23
A company needs to ensure that its AWS S3 bucket cannot be accessed from the internet. What should they do?
AEnable Block Public Access
BUse a CloudFront distribution
CEnable Versioning
DChange the bucket name
Explanation
Enabling Block Public Access prevents internet access, unlike CloudFront, which is for distribution.
Q24
What happens when an EC2 instance terminates unexpectedly?
AData on EBS is preserved
BThe EBS volume is deleted
CInstance restarts automatically
DAll data is lost
Explanation
If the EBS volume is set to 'do not delete', data is preserved, unlike option B.
Q25
Which service automatically adjusts your application's capacity?
AAmazon Elastic Load Balancing
BAmazon Auto Scaling
CAmazon CloudFront
DAmazon Route 53
Explanation
Amazon Auto Scaling adjusts capacity based on demand, while the others do not provide automatic scaling.
Q26
A company needs to run code in response to S3 events. Which service should they use?
AAWS Lambda
BAmazon EC2
CAmazon ECS
DAWS Batch
Explanation
AWS Lambda is designed for event-driven execution for tasks like this, while the others require manual intervention or different setup.
Q27
What happens when an IAM policy is attached to a user and denies all actions?
AUser can perform any actions.
BUser can only view permissions.
CUser cannot perform any actions.
DUser can perform admin actions.
Explanation
A deny policy overrides any allows, preventing all actions, while the other options incorrectly imply permissions remain.
Q28
A company needs to store large amounts of unstructured data. Which AWS service should they use?
AAmazon S3
BAmazon RDS
CAmazon DynamoDB
DAWS Lambda
Explanation
Amazon S3 is designed for large-scale storage of unstructured data, whereas RDS and DynamoDB are for structured data, and Lambda is a compute service.
Q29
You are configuring an IAM policy that needs to allow EC2 instances to access certain S3 buckets. What should the policy include?
Aec2:AccessBucket
Bs3:ListBucket
Cecs:DescribeClusters
Diam:AttachRole
Explanation
The s3:ListBucket permission is necessary to allow EC2 instances to access S3 buckets; the other options are either invalid or not related.
Q30
What happens when you terminate an EC2 instance with an EBS volume set to 'Delete on Terminate'?
AEBS volume is deleted
BEBS volume is retained
CInstance stops functioning
DInstance enters hibernation
Explanation
The EBS volume will be deleted if it's configured to 'Delete on Terminate'; otherwise, it remains intact.