시험덤프
매달, 우리는 1000명 이상의 사람들이 시험 준비를 잘하고 시험을 잘 통과할 수 있도록 도와줍니다.
  / EX378 덤프  / EX378 문제 연습

RedHat EX378 시험

Red Hat Certified Cloud-native Developer exam 온라인 연습

최종 업데이트 시간: 2025년06월06일

당신은 온라인 연습 문제를 통해 RedHat EX378 시험지식에 대해 자신이 어떻게 알고 있는지 파악한 후 시험 참가 신청 여부를 결정할 수 있다.

시험을 100% 합격하고 시험 준비 시간을 35% 절약하기를 바라며 EX378 덤프 (최신 실제 시험 문제)를 사용 선택하여 현재 최신 123개의 시험 문제와 답을 포함하십시오.

 / 8

Question No : 1


Verify health endpoints with curl.

정답:
Explanation:
curl http://localhost:8080/q/health # all
curl http://localhost:8080/q/health/live # liveness
curl http://localhost:8080/q/health/ready # readiness

12 1. Use a shared service in a health check to determine status.
A. See the Explanation.
Answer: A
Explanation:
@Readiness
@ApplicationScoped
public class ServiceHealthCheck implements HealthCheck {
@Inject ExternalService service;
@Override
public HealthCheckResponse call() {
return service.isAvailable() ? HealthCheckResponse.up("external-ok") :
HealthCheckResponse.down("external-fail");
}
}

Question No : 2


Simulate a slow reactive readiness check.

정답:
Explanation:
@Readiness
@ApplicationScoped
public class SlowReactiveReadiness implements ReactiveHealthCheck {
@Override
public Uni<HealthCheckResponse> call() {
return Uni.createFrom().item(() -> HealthCheckResponse.up("slow-ready"))
.onItem().delayIt().by(Duration.ofSeconds(2));
}
}

Question No : 3


Use @Startup with custom delay simulation.

정답:
Explanation:
@Startup
@ApplicationScoped
public class DelayedStartupProbe implements HealthCheck {
private final long startTime = System.currentTimeMillis();
@Override
public HealthCheckResponse call() {
return System.currentTimeMillis() - startTime > 3000 ? HealthCheckResponse.up("delayed-startup")
: HealthCheckResponse.down("booting");
}
}

Question No : 4


Implement a reactive health check using Uni.

정답:
Explanation:
@Liveness
@ApplicationScoped
public class ReactiveLivenessCheck implements ReactiveHealthCheck {
@Override
public Uni<HealthCheckResponse> call() {
return Uni.createFrom().item(HealthCheckResponse.up("reactive-check"));
}
}

Question No : 5


Create a HealthCheckResponse with data payload.

정답:
Explanation:
@Readiness
@ApplicationScoped
public class DiskSpaceCheck implements HealthCheck {
@Override
public HealthCheckResponse call() {
File root = new File("/");
long freeSpace = root.getFreeSpace();
return HealthCheckResponse.named("disk-space")
.status(freeSpace > 1000000000)
.withData("free", freeSpace)
.build();
}
}

Question No : 6


Use @Liveness and @Readiness on separate checks and access them via REST.

정답:
Explanation:
• Access /q/health/live for @Liveness
• Access /q/health/ready for @Readiness
• Add multiple classes each annotated with either annotation

Question No : 7


Add startup probe to signal when the app has completed boot.

정답:
Explanation:
@Startup
@ApplicationScoped
public class StartupProbe implements HealthCheck {
private final long start = System.currentTimeMillis();
@Override
public HealthCheckResponse call() {
return (System.currentTimeMillis() - start > 5000)
? HealthCheckResponse.up("startup-complete") : HealthCheckResponse.down("still-starting");
}
}

Question No : 8


Implement a liveness check that fails after 3 failed pings.

정답:
Explanation:
@Liveness
@ApplicationScoped
public class PingLivenessCheck implements HealthCheck { int failures = 0;
@Override
public HealthCheckResponse call() {
if (++failures > 3) return HealthCheckResponse.down("ping-fail"); return HealthCheckResponse.up("ping-ok");
}
}

Question No : 9


Create a readiness check that verifies if a file exists.

정답:
Explanation:
@Readiness
@ApplicationScoped
public class FileReadinessCheck implements HealthCheck {
@Override
public HealthCheckResponse call() {
File f = new File("/tmp/ready.flag");
return f.exists() ? HealthCheckResponse.up("file-check") : HealthCheckResponse.down("file-check");
}
}

Question No : 10


Use async bulkhead fallback with CompletionStage.

정답:
Explanation:
@Asynchronous
@Bulkhead(value = 2, waitingTaskQueue = 5)
@Fallback(fallbackMethod = "asyncFallback")
public CompletionStage<String> bulkheadAsync() {
return CompletableFuture.supplyAsync(() -> {
Thread.sleep(3000);
return "Done";
});
}
public CompletionStage<String> asyncFallback() {
return CompletableFuture.completedFuture("Fallback async result");
}

11 1. Create a basic liveness check using the HealthCheck interface.
A. See the Explanation.
Answer: A
Explanation:
@Liveness
@ApplicationScoped
public class BasicLivenessCheck implements HealthCheck {
@Override
public HealthCheckResponse call() {
return HealthCheckResponse.up("basic-liveness");
}
}
Hit /q/health/live to see the result.

Question No : 11


Apply @Bulkhead to a JAX-RS endpoint to throttle API usage.

정답:
Explanation:
@Path("/upload")
public class UploadResource {
@GET
@Bulkhead(3)
public String upload() {
return "Processing upload...";
}
}
Prevents more than 3 concurrent uploads.

Question No : 12


Monitor bulkhead and circuit breaker states in real time.

정답:
Explanation:
Use tools like Prometheus + Grafana or Quarkus Dev UI (in dev mode) to inspect runtime health of fault-tolerant components.

Question No : 13


Log circuit breaker and bulkhead metrics for monitoring.

정답:
Explanation:
Enable metrics in Quarkus:
quarkus.smallrye-metrics.enabled=true
Then access /q/metrics endpoint to view fault tolerance metrics.

Question No : 14


Dynamically read config fallback threshold from application.properties.

정답:
Explanation:
@Inject
@ConfigProperty(name = "fallback.threshold", defaultValue = "5")
int threshold;
Used in fallback logic or method to tune runtime behavior.

Question No : 15


Create reusable config profile for staging environment.

정답:
Explanation:
application-staging.properties:
mp.fault.tolerance.timeout.default.timeout=2000
mp.fault.tolerance.bulkhead.default.value=4
Activate with: -Dquarkus.profile=staging

 / 8