Practice
Solution
Step 1: Understand client certificate validation
After receiving the server's certificate chain, the client validates it against its trusted root certificate authorities to ensure authenticity.Step 2: Eliminate incorrect options
The client immediately sends encrypted application data without verification is wrong because the client must verify before sending encrypted data. The client requests a new certificate from the server is incorrect; clients do not request certificates from servers. The client closes the connection if the certificate is expired without any retries is partially true but the client may attempt other steps like checking revocation before closing.Final Answer:
Option D -> Option DQuick Check:
Client verifies certificate chain before proceeding [check]
Solution
Step 1: Evaluate synchronous indexing impact
Relational DB with synchronous full-text indexing (A) causes high write latency and poor scalability.Step 2: Compare alternatives
Elasticsearch (B) supports near real-time indexing, low-latency queries, and scales well with frequent updates. Cache refresh (C) is too stale for frequent updates. NoSQL with secondary indexes (D) lacks efficient full-text search capabilities.Final Answer:
Option D -> Option DQuick Check:
Elasticsearch balances update frequency and query latency [check]
Solution
Step 1: Analyze consistency and latency needs
Strict per-user limits require consistent counters with low latency.Step 2: Evaluate architectures
Centralized Redis (A) is a bottleneck; client-side counters (C) are eventually consistent and unreliable; distributed SQL (D) has high latency. Sharded Redis with consistent hashing (B) balances load and maintains per-user consistency.Final Answer:
Option C -> Option CQuick Check:
Sharded Redis cluster scales with consistent hashing per user [check]
Solution
Step 1: Role of metadata service
Metadata tracks access patterns to trigger tier migration safely without data loss.Step 2: Consequence of missing metadata
Without metadata, migration workers may archive data prematurely without validation, causing permanent data loss.Final Answer:
Option D -> Option DQuick Check:
Missing metadata -> unsafe archiving -> data loss [check]
Solution
Step 1: Identify bottleneck in percentile computation
Computing P50, P95, and P99 latencies in real-time requires sorting or approximation algorithms that are CPU and memory intensive.Step 2: Why aggregation service fails first
At 10x scale, the aggregation service faces exponential resource demands, making it the first to fail before storage or alerting.Final Answer:
Option B -> Option BQuick Check:
Real-time percentile computation scales poorly -> aggregation service fails first [check]
