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.
Which service provides automated version control for AWS Lambda functions?
AAWS CodeDeploy
BAWS Lambda Versions
CAWS CloudFormation
DAWS CodePipeline
Explanation
AWS Lambda Versions allows you to manage function versions, whereas others do not focus specifically on Lambda versioning.
Q242
A company needs to deploy a static website on AWS. Which service should they choose for cost efficiency and easy maintenance?
AAWS EC2
BAWS Lightsail
CAWS S3
DAWS Elastic Beanstalk
Explanation
AWS S3 is explicitly designed for static website hosting and is cost-effective, unlike the other services that involve more complexity and cost.
Q243
What happens when you assign an IAM role to an EC2 instance at launch?
AInstance loses any previously assigned roles
BThe role provides AWS credentials for access
CAll S3 data gets accessed automatically
DUser permissions override role permissions
Explanation
Assigning an IAM role grants the instance temporary AWS credentials to access AWS services, whereas the other options are incorrect interpretations of role behavior.
Q244
Which service provides a fully managed NoSQL database?
AAmazon DynamoDB
BAmazon RDS
CAmazon S3
DAmazon Aurora
Explanation
Amazon DynamoDB is specifically built for NoSQL use cases; others are relational or storage services.
Q245
A company needs to encrypt data at rest in S3; what should they use?
AS3 Object Lock
BAWS Key Management Service
CS3 Transfer Acceleration
DS3 Versioning
Explanation
AWS KMS manages encryption keys for encrypting data in S3; others do not relate to encryption mechanisms.
Q246
What happens when a Lambda function timeouts during execution?
AThe function retries automatically.
BThe function succeeds partially.
CAn error is logged.
DThe function stops without any log.
Explanation
An error is logged for diagnostic purposes, but the function does not retry automatically unless configured to do so.
Q247
A company needs to securely share S3 objects with a partner. What is the best practice?
AGenerate a pre-signed URL.
BUse public read access.
CShare IAM user credentials.
DSet bucket policy to allow access.
Explanation
Pre-signed URLs expire after a specified time, ensuring secure temporary access, whereas public access and sharing IAM credentials are less secure and not recommended.
Q248
What happens when you change the lifecycle rule of an S3 bucket during a data transfer?
AImmediate deletion of objects.
BTransfer will restart from scratch.
CExisting transfers will complete.
DAll transfers are paused.
Explanation
Changing a lifecycle rule does not interrupt ongoing transfers; they will complete before rules are applied to the objects.
Q249
You are configuring an IAM policy that allows developers to list EC2 instances. What resource should you specify?
Aarn:aws:ec2:region:account:instance/*
Barn:aws:ec2:region:account:security-group/*
Carn:aws:ec2:region:account:volume/*
Darn:aws:ec2:region:account:*
Explanation
Specifying instances with 'instance/*' grants the necessary permission, while other options pertain to different EC2 resources.
Q250
Which service is used for serverless compute?
AAWS Lambda
BAmazon EC2
CAmazon S3
DAWS RDS
Explanation
AWS Lambda is designed for serverless execution, while EC2 provides virtual servers and S3 is for storage.