Easy ReviewDOP-C02
Resilient Cloud Solutions5

DocumentDB

Use a managed MongoDB-compatible document database and understand its cluster behavior.

Este conteúdo de estudo ainda não foi traduzido, então aparece em inglês. Ajude a traduzir

Amazon DocumentDB supports document workloads with MongoDB-compatible APIs and managed cluster storage.

Document workloads and compatibility

Amazon DocumentDB is a managed database for MongoDB-compatible documentA data record structured using key-value pairs that can be nested. workloads. A document stores data in key-value pairs that can be nested. Instance-based clusters use replicasA database instance that serves reads and can be a failover target. and endpointsA host address and port used to connect to a database instance. to support reads and failover.

How it works

  1. Choose an instance-based or elastic cluster. In an instance-based cluster, the primary instance handles writes and reads. A replica is an additional instance that serves reads.
  2. Instances use a shared cluster volume, with six copies across three Availability Zones. An Availability ZoneA distinct location in a Region designed to be isolated from failures in other zones. is an isolated location within an AWS Region.
  3. Connect through the cluster endpoint, a network address for the current primary. In replica set mode, a read preference can direct eligible reads to replicas.

Exam cues

  • If the question says more read capacity and a failover target, think replicas, because replicas serve reads and can be promoted.
  • If the question says a connection must follow the primary after failover, think cluster endpoint, because it connects to the current primary.

Remember

  • An instance-based cluster supports up to 15 replicas. Replica reads are eventually consistent, so they can lag behind writes.
  • The reader endpoint balances connections, not individual requests.

Trap: The reader endpoint balances connections, not individual read requests.

Instance-based cluster
123ApplicationPrimaryReplicaCluster volume
  1. The application writes through the primary.

  2. The primary writes to the shared cluster volume.

  3. Replicas read from the shared volume.

Da documentação da AWS (16)
  • Amazon DocumentDB is a managed MongoDB-compatible database service.
  • Document databases store semistructured data in documents using nested key-value pairs.
  • Amazon DocumentDB has functional differences from MongoDB.
  • Supported MongoDB APIs and operations vary by compatibility level.
  • Amazon DocumentDB supports instance-based clusters and elastic clusters.
  • Availability Zones are distinct locations within an AWS Region, designed to be isolated from failures in other zones.
  • In an instance-based cluster, the primary handles writes and reads.
  • An instance-based cluster can have up to 15 read replicas, which can also be failover targets.
  • The cluster volume has six copies of data across three Availability Zones.
  • Replica reads are eventually consistent with the primary.
  • The cluster endpoint connects to the current primary and supports failover.
  • The reader endpoint balances connections, not requests, across replicas.
  • AWS recommends the cluster endpoint in replica set mode with a suitable read preference.
  • Continuous backups retain data for 1 to 35 days for point-in-time recovery.
  • A manual snapshot can retain backup data beyond the backup retention period.
  • Encryption at rest uses AWS KMS keys and covers backups, snapshots and replicas in the cluster.

Flashcards

toque para virar
Resposta

·

Todos os 5 flashcards em lista

An instance-based Amazon DocumentDB cluster needs more read capacity and a failover target. What should the team add?

Add a read replica. It can serve reads and act as a failover target.

A team needs an Amazon DocumentDB connection that follows the current primary after failover. Which endpoint should it use?

The cluster endpoint. It connects to the current primary and supports failover.

An application needs to distribute Amazon DocumentDB reads while leaving the primary free for writes. What connection approach should it consider?

Use the cluster endpoint in replica set mode with an appropriate read preference and replicas.

Does an Amazon DocumentDB reader endpoint balance individual read requests evenly?

No. It balances connections, not individual requests.

What consistency should a client expect when reading from an Amazon DocumentDB replica?

Eventual consistency with the primary.

Você concluiu todos os tópicos da DOP-C02!

Seu badge ficou dourado. Próximo passo: agendar a prova na AWS. Depois de passar, adicione-se ao Quem passou.

Compartilhar

Conte que você concluiu esta certificação

Concluí todos os tópicos da AWS Certified DevOps Engineer - Professional (DOP-C02) no Easy Review. Venha estudar também!