Amazon AWS

AWS Certified Developer – Associate

DVA-C02
Popular

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.

492 questions 0 views Free
Start Mock Test Timed · Full-length · Scored

Questions 241–250 of 492

Q241

Which service provides automated version control for AWS Lambda functions?

  • A AWS CodeDeploy
  • B AWS Lambda Versions
  • C AWS CloudFormation
  • D AWS 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?

  • A AWS EC2
  • B AWS Lightsail
  • C AWS S3
  • D AWS 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?

  • A Instance loses any previously assigned roles
  • B The role provides AWS credentials for access
  • C All S3 data gets accessed automatically
  • D User 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?

  • A Amazon DynamoDB
  • B Amazon RDS
  • C Amazon S3
  • D Amazon 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?

  • A S3 Object Lock
  • B AWS Key Management Service
  • C S3 Transfer Acceleration
  • D S3 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?

  • A The function retries automatically.
  • B The function succeeds partially.
  • C An error is logged.
  • D The 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?

  • A Generate a pre-signed URL.
  • B Use public read access.
  • C Share IAM user credentials.
  • D Set 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?

  • A Immediate deletion of objects.
  • B Transfer will restart from scratch.
  • C Existing transfers will complete.
  • D All 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?

  • A arn:aws:ec2:region:account:instance/*
  • B arn:aws:ec2:region:account:security-group/*
  • C arn:aws:ec2:region:account:volume/*
  • D arn: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?

  • A AWS Lambda
  • B Amazon EC2
  • C Amazon S3
  • D AWS RDS
Explanation AWS Lambda is designed for serverless execution, while EC2 provides virtual servers and S3 is for storage.